<?php
namespace app\home\controller;
use think\Controller;
class Test extends Controller{
    public function index()
    {
        # code...
        Hook::listen('initaction');
    }
}